import { useIntl } from 'umi';
import { GithubOutlined } from '@ant-design/icons';
import { DefaultFooter } from '@ant-design/pro-layout';
import { Avatar } from 'antd';
const Footer: React.FC = () => {
  const intl = useIntl();
  const defaultMessage = intl.formatMessage({
    id: 'app.copyright.produced',
    defaultMessage: '山西工程技术学院出品',
  });

  const currentYear = new Date().getFullYear();

  return (
    <DefaultFooter
      copyright={`${currentYear} ${defaultMessage}`}
      links={[
        {
          key: 'School official website',
          title: '山西工程技术学院官网',
          href: 'http://www.sxit.edu.cn/',
          blankTarget: true,
        },
        {
          key: '山西工程技术学院',
          title: <Avatar src="https://static-data.eol.cn/upload/logo/1650.jpg" />,
          href: '',
          blankTarget: true,
        },
        {
          key: 'Educational administration system',
          title: '山西工程技术学院教务系统',
          href: 'http://www.sxit.edu.cn/jxglwzdh.htm',
          blankTarget: true,
        },
      ]}
    />
  );
};

export default Footer;
